package com.blog.Utils;

import com.blog.base.Url;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author 任浩
 * @version 1.0
 */
public class RedirectUtils {

    /**
     * 重定向到登录页面
     * @param response
     * @throws IOException
     */
    public static void setRedirect(HttpServletResponse response) throws IOException {
//        response.setContentType("application/json;charset=utf-8");
//        response.sendRedirect(Url.LOGIN_URL);
        response.getWriter().write("-1");
    }
}
